home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Milan_1991 / Devcon91.2 / Network / Socket / include / sys / ioctl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-01  |  1.9 KB  |  50 lines

  1. /*
  2. **    ioctl.h
  3. **
  4. **    s_ioctl() socket ioctl operations
  5. **
  6. **    (C) Copyright 1991 Commodore-Amiga, Inc.
  7. **        All Rights Reserved
  8. */
  9.  
  10. #ifndef SYS_IOCTL_H
  11. #define SYS_IOCTL_H
  12.  
  13. #define IOCTL(type, op) (((type)<<8) | ((op)&0xff))
  14. #define ROUTE    'r'
  15. #define NETIF    'i'
  16. #define MISC    'm'
  17.  
  18. #define    SIOCADDRT    IOCTL(ROUTE, 1)    /* add routing entry to list    */
  19. #define    SIOCDELRT    IOCTL(ROUTE, 2)    /* delete routing entry     */
  20.  
  21. #define    SIOCSIFADDR    IOCTL(NETIF, 3)    /* set interface address    */
  22. #define    SIOCGIFADDR    IOCTL(NETIF, 4)    /* get interface address    */
  23. #define    SIOCSIFDSTADDR    IOCTL(NETIF, 5)    /* set interface dest address    */
  24. #define    SIOCGIFDSTADDR    IOCTL(NETIF, 6)    /* get interface dest address    */
  25. #define    SIOCSIFFLAGS    IOCTL(NETIF, 7)    /* set interface flags        */
  26. #define    SIOCGIFFLAGS    IOCTL(NETIF, 8)    /* get interface flags        */
  27. #define    SIOCGIFCONF    IOCTL(NETIF, 9)    /* get interface configuration    */
  28. #define    SIOCSIFMTU    IOCTL(NETIF,10)    /* get interface MTU        */
  29. #define    SIOCGIFMTU    IOCTL(NETIF,11)    /* set interface MTU        */
  30. #define    SIOCGIFBRDADDR    IOCTL(NETIF,12)    /* get interface brdcst address    */
  31. #define    SIOCSIFBRDADDR    IOCTL(NETIF,13)    /* set interface brdcst address    */
  32. #define    SIOCGIFNETMASK    IOCTL(NETIF,14)    /* get interface netmask    */
  33. #define    SIOCSIFNETMASK    IOCTL(NETIF,15)    /* set interface netmask    */
  34. #define    SIOCGIFMETRIC    IOCTL(NETIF,16)    /* set interface metric        */
  35. #define    SIOCSIFMETRIC    IOCTL(NETIF,17)    /* get interface metric        */
  36. #define SIOCSARP    IOCTL(NETIF,18)    /* set ARP resolution        */
  37. #define SIOCGARP    IOCTL(NETIF,19)    /* get ARP entry        */
  38. #define SIOCDARP    IOCTL(NETIF,20)    /* delete arp entry        */
  39. #define SIOCATMARK    IOCTL(NETIF,21)    /* OOB at mark            */
  40. #define SIOCSSLIPDEV    IOCTL(NETIF,22)    /* set slip device        */
  41.  
  42. #define FIONBIO        IOCTL(MISC, 22)
  43. #define FIONREAD    IOCTL(MISC, 23)
  44. #define FIOASYNC    IOCTL(MISC, 24)
  45.  
  46. #define SIOCSPGRP    IOCTL(MISC, 25) /* set signalled process    */
  47. #define SIOCGPGRP    IOCTL(MISC, 26)    /* get signalled process    */
  48.  
  49. #endif
  50.